<template>
  <div id="mainuserinfo">
    <div class="about">

      <transition name="el-fade-in-linear">
        <div class="username" v-show="show">用户名 : {{user.username}}</div>
      </transition>

      <transition name="el-fade-in-linear">
        <div class="email" v-show="show">email : {{user.email}}</div>
      </transition>

    </div>
  </div>
</template>

<script>
export default {
  data() {
    return {
      show: false,
    };
  },
  computed: {
    user() {
      return this.$store.getters.user;
    }
  },
  created() {
    setTimeout(() => {
      this.show = true;
    }, 200);
  },
};
</script>

<style lang="less" scoped>
#mainuserinfo {
  width: 100%;
  height: 100%;
  // background-color: rgba(39, 41, 43, 0.445);
  background-color: rgba(92, 92, 92, 0.055);
  position: relative;
  .about {
    position: absolute;
    top: 40%;
    left: 50%;
    display: flex;
    flex-direction: column;
    transform: translate(-50%, -50%);
    width: 300px;
    height: 150px;
    font-size: 30px;
    font-weight: 300;
    color: rgb(75, 82, 88);
  }
}
</style>